﻿@if(Request.IsAuthenticated) 
{
    <text>
    Používateľ: <strong>@User.Identity.Name</strong> | 
    
     @if(User.IsInRole("Redactors"))
    {
        @Html.ActionLink("Administrácia", "Index", "Redactors", new { area = "Admin" }, null) 
    }
    
    @if(User.IsInRole("Administrators"))
    {
        @Html.ActionLink("Administrácia", "Index", "Home", new { area = "Admin" }, null) 
    }
    
    @if(User.IsInRole("Users"))
    {
        @Html.ActionLink("Môj klub", "Index", "Home", new { area = "MyClub" }, null)
    }
    |
    @Html.ActionLink("Zmeniť heslo", "ChangePassword", "Account", new { area = "" }, null) | 
    @Html.ActionLink("Odhlásiť", "LogOff", "Account", new { area = ""}, null)
    </text>
}
else
{
    @Html.ActionLink("Prihlásiť", "LogOn", "Account", new { area = ""}, null)
}
